using System;
using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using Utils;

public class WeaponPanel : MonoBehaviour
{
    private new TextMeshProUGUI name;
    private TextMeshProUGUI atk;
    private TextMeshProUGUI mp;

    private void Awake()
    {
        name = UITool.GetComponent<TextMeshProUGUI>("BG/Name", gameObject);
        atk = UITool.GetComponent<TextMeshProUGUI>("BG/Info/ATK/Value", gameObject);
        mp = UITool.GetComponent<TextMeshProUGUI>("BG/Info/MP/Value", gameObject);
    }

    public void SetValue(string name, string atk, string mp)
    {
        this.name.text = name;
        this.atk.text = atk;
        this.mp.text = mp;
    }

    public void UnLoad()
    {
        Destroy(gameObject);
    }
}
